/*
 * FileInfo.cpp
 *
 * */

#include "FileInfo.h"

FileInfo::FileInfo() {}

FileInfo::FileInfo(const FileInfo& file) {
	this->filename = file.filename;
	this->hash = file.hash;
	this->fechaModificacion = file.fechaModificacion;
}

FileInfo::~FileInfo() {}

// Estructura: filename hash fileDate
std::istream& operator>>(std::istream &i, FileInfo &fInfo) {
	fInfo.filename.clear();
	i >> fInfo.filename;
	i >> fInfo.hash;
	i >> fInfo.fechaModificacion;
	return i;
}
